import request from '@/utils/request'

// 查询救援订单 列表
export function listOrders(query) {
  return request({
    url: '/system/rescueOrders/list',
    method: 'get',
    params: query
  })
}

// 查询救援订单 详细
export function getOrders(rescueOrdersId) {
  return request({
    url: '/system/rescueOrders/' + rescueOrdersId,
    method: 'get'
  })
}

// 新增救援订单 
export function addOrders(data) {
  return request({
    url: '/system/rescueOrders',
    method: 'post',
    data: data
  })
}

// 修改救援订单 
export function updateOrders(data) {
  return request({
    url: '/system/rescueOrders',
    method: 'put',
    data: data
  })
}

// 删除救援订单 
export function delOrders(rescueOrdersId) {
  return request({
    url: '/system/rescueOrders/' + rescueOrdersId,
    method: 'delete'
  })
}

// 导出救援订单 
export function exportOrders(query) {
  return request({
    url: '/system/rescueOrders/export',
    method: 'get',
    params: query
  })
}